package work.chief.dao;

import work.chief.entity.User;

import java.util.List;

public interface UserDao {
    User selectByUsernameAndPassword(String username,String password);
    User selectByPhoneNum(String phone_number);
    User selectByUserName(String username);
    int register(User user);

    User selectByUsernameAndPasswordAndManager(String username,String password,int manager);

    List<User> selectAll();
    //分页查询
    List<User> selectPage(Integer currentPage,Integer pageSize);
    Integer selectPageCount();

    //更新manager
    int updateManager(int id,int manager);

    //删除用户
    int deleteUsers(String ids);
}
